package com.csun.cmny.provider.model.dto.server;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-09-02 14:36
 * @Description: the class server dto
 */
@Data
public class ServerDto {

    /**
     * id
     */
    private Long id;

    /**
     * 服务器ip
     */
    @NotNull(message = "{server.ip.null}")
    @NotEmpty(message = "{server.ip.null}")
    private String ip;

    /**
     * 服务器端口
     */
    @NotNull(message = "{server.port.null}")
    private Integer port;

    /**
     * 服务器类型 1-stun 2-turn 3-sip
     */@NotNull(message = "{server.type.null}")
    private Integer type;

    /**
     * 描述
     */
    private String remark;

}
